import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import test1Route from './test1/test1'
import three from './three/trhee'
const routes: Array<RouteRecordRaw> = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/login/login.vue'),
    meta: {
      keepAlive: false,
      title: '登录页',
      roles: [],
      hidden: true,
      icon: 'DashboardOutlined'
    },
    children: []
  },
  {
    path: '/',
    name: 'Layout',
    component: () => import('@/layout/layout.vue'),
    meta: {
      keepAlive: false,
      title: '首页',
      roles: [],
      hidden: false,
      icon: 'DashboardOutlined'
    },
    children: [
      {
        path: '',
        name: 'dashBoard',
        component: () => import('@/views/dashBoard/dashBoard.vue'),
        meta: {
          keepAlive: false,
          title: '首页',
          roles: [],
          hidden: false,
          icon: 'HomeOutlined'
        }
      }
    ]
  },
  test1Route,
  three
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
